<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:28:"./tpl/admin/index/index.html";i:1636098094;s:27:"./tpl/admin/common/top.html";i:1636097721;s:28:"./tpl/admin/common/head.html";i:1640077256;s:28:"./tpl/admin/common/left.html";i:1639534469;s:28:"./tpl/admin/common/foot.html";i:1636098031;s:30:"./tpl/admin/common/bottom.html";i:1636098083;}*/ ?>

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>后台管理面板</title>
  <!-- 告诉浏览器该页面是自适应布局 -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/font-awesome/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/Ionicons/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="/static/admin/adminlte/dist/css/AdminLTE.min.css">
<!-- AdminLTE 皮肤。
   从 css/skins 目录下选择一个皮肤，以减少负载，而不是下载所有皮肤。 -->
<link rel="stylesheet" href="/static/admin/adminlte/dist/css/skins/_all-skins.min.css">

<!-- Date Picker -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<!-- Datetime Picker -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
<!-- Daterange picker -->
<link rel="stylesheet" href="/static/admin/adminlte/bower_components/bootstrap-daterangepicker/daterangepicker.css">

<link rel="stylesheet" href="/static/admin/sweetalert/dist/sweetalert2.min.css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- 警告：Respond.js 不支持 file:// 方式查看（即本地方式查看）-->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

<!-- Google Font -->
<!--<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">-->

<!-- My CSS -->
<link rel="stylesheet" href="/static/admin/adminlte/style.css">
<!-- jQuery 3 -->
<script src="/static/admin/adminlte/bower_components/jquery/dist/jquery.min.js"></script>
<!--webuploader-->
<link rel="stylesheet" type="text/css" href="/static/admin/webuploader-0.1.5/webuploader.css">
</head>
<body class="hold-transition skin-blue sidebar-mini fixed">
<div class="wrapper">
  <header class="main-header">
<!-- Logo -->
<a href="/admin/index/index.html" class="logo">
  <!-- mini logo for sidebar mini 50x50 pixels -->
  <span class="logo-mini"><?php echo $sysname; ?></span>
  <!-- logo for regular state and mobile devices -->
  <span class="logo-lg"><?php echo $sysname; ?></span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
  <!-- Sidebar toggle button-->
  <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button" title="切换导航">
    <span class="sr-only">切换导航</span>
  </a>
  <!-- full screen -->
  <a href="javascript:;" class="sidebar-toggle fullscreen" title="全屏模式">
    <i class="glyphicon glyphicon-fullscreen"></i>
  </a>

  <div class="navbar-custom-menu">
    <ul class="nav navbar-nav">
      <!-- User Account: style can be found in dropdown.less -->
      <li class="dropdown user user-menu">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
          <img src="<?php echo $headimg; ?>" class="user-image">
          <span class="hidden-xs"><?php echo $username; ?></span>
        </a>
        <ul class="dropdown-menu">
          <!-- User image -->
          <li class="user-header">
            <img src="<?php echo $headimg; ?>" class="img-circle">
            <h5>上次登录时间：<?php echo $last_time; ?></h5>
            <h5>上次登录IP：<?php echo $last_ip; ?></h5>
          </li>
          <!-- Menu Body -->
          <!-- Menu Footer-->
          <li class="user-body">
            <div class="pull-left">
              <a href="<?php echo url('users/edit', ['id'=>$uid]); ?>" target="right" class="btn btn-default btn-flat">资料</a>
            </div>
            <div class="pull-right">
              <a href="<?php echo url('publics/logout'); ?>" class="btn btn-default btn-flat">退出</a>
            </div>
          </li>
        </ul>
      </li>
      <li>
          <a class="clear_cash" href="javascript:;"  target="right" title="清空缓存"><i class="glyphicon glyphicon-refresh"></i></a>
      </li>
      <li>
        <a href="/"  target="_blank" title="访问系统前台"><i class="glyphicon glyphicon-home"></i></a>
      </li>
    </ul>
  </div>
</nav>
</header>
<script>
  $(".clear_cash").click(function(){
      var url = "/admin/index/clear.html";
      swal({
          title: '确定要清除缓存吗?',
          text: "该操作无法撤回！",
          type: 'warning',
          showCancelButton: true,
          confirmButtonColor: '#3c8dbc',
          cancelButtonColor: '#d33',
          confirmButtonText: '确定',
          cancelButtonText: '取消'
      }).then(function(isConfirm) {
          if (isConfirm) {
              $.post(url,{del:true},function(result){
                  if(result.code == 1){
                      swal(result.msg,'','success').then(function(){window.location.reload()});
                  }else{
                      swal(result.msg,'','error');
                  }
              });
          }
      })
  })
</script>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
  <!-- Sidebar user panel -->
  <div class="user-panel">
    <div class="pull-left image">
      <img src="<?php echo $headimg; ?>" class="img-circle">
    </div>
    <div class="pull-left info">
      <p><?php echo $username; ?></p>
      <i class="fa fa-circle text-success"></i> 在线
    </div>
  </div>
  <!-- sidebar menu: : style can be found in sidebar.less -->
  <ul class="sidebar-menu" data-widget="tree">
    <li class="header">主导航</li>
    <?php echo $sidebar; ?>
    
  </ul>
</section>
<!-- /.sidebar -->
</aside>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
       <iframe id="menuFrame" scrolling="auto" frameborder="0" src="<?php echo url('index/welcome'); ?>" name="right" width="100%" height="100%"></iframe>
  </div>
  
</div>
<!-- ./wrapper -->
  <!-- jQuery UI 1.11.4 -->
<script src="/static/admin/adminlte/bower_components/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="/static/admin/adminlte/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>

<!-- daterangepicker -->
<script src="/static/admin/adminlte/bower_components/moment/min/moment.min.js"></script>
<script src="/static/admin/adminlte/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="/static/admin/adminlte/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="/static/admin/adminlte/bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js"></script>
<!-- datetimepicker -->
<script src="/static/admin/adminlte/bower_components/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script src="/static/admin/adminlte/bower_components/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<!-- FastClick -->
<script src="/static/admin/adminlte/bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="/static/admin/adminlte/dist/js/adminlte.min.js"></script>
<!-- SlimScroll -->
<script src="/static/admin/adminlte/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- AdminLTE dashboard 演示（仅供演示使用） -->
<!--<script src="/static/admin/adminlte/dist/js/pages/dashboard.js"></script>-->
<!-- AdminLTE for demo purposes -->
<!--<script src="/static/admin/adminlte/dist/js/demo.js"></script>-->

<script src="/static/admin/sweetalert/dist/sweetalert2.min.js"></script>
<script src="/static/admin/sweetalert/lib/es6-promise.min.js"></script>

<script src="/static/admin/adminlte/my.js"></script>
<script>
    $("#menuFrame").height(window.innerHeight-60);
  $(".left_li").click(function(){
    $(".left_li").removeClass("active");
    $(this).addClass("active"); 
    })
</script>
</body>
</html>
